package com.xinqi.common.base.error;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import lombok.With;

import java.io.Serializable;

/**
 * 错误信息
 *
 * @author linkai
 * @date 2022/11/25
 */
@SuppressWarnings("unused")
@Value
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Builder
public class ErrorInfo implements Serializable, ErrorDetail {

    @With
    private int code;

    private String msg;

    @With
    private Object data;

    @With
    private String path;

}
